<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>js</title>
</head>
<body>
	<p><a href="http://www.baidu.com" name='baidu'>百度</a></p>
	<p><a href="http://www.163.com" name='163'>网易</a></p>
	<p><a href="http://www.qq.com" name='qq'>腾讯</a></p>
</body>
<script>
	
	
	objs=document.anchors;//anchors获取锚点
	
	for(i=0;i<objs.length;i++){
		
		objs[i].style.textDecoration='line-through';//a标签横线穿过文字
	}

</script>
</html>